/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  transition: transform 0.3s ease;
}

a {
  color: #fff;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.logo img {
  height: 30px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 10px;
  flex: 1;
  margin: 0 15px;
  max-width: 200px;
}

.search-box input {
  background: none;
  border: none;
  color: #fff;
  width: 100%;
  outline: none;
  padding-left: 5px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.user-menu {
  display: flex;
  gap: 10px;
}

.login-btn,
.register-btn {
  background-color: #e62117;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
    font-weight: 500;
  transition: background-color 0.3s;
}

.register-btn {
  background-color: #2a56c6;
}

.login-btn:hover {
  background-color: #ff3329;
}

.register-btn:hover {
  background-color: #3b68d7;
}


.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 3px;
}

.nav-item span {
  font-size: 12px;
}

.nav-item.active {
  color: #e62117;
}

.nav-item:hover {
  color: #fff;
}

.other-login-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  width: 100%;
  margin-top: 10px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.other-login-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.other-login-btn i {
  font-size: 16px;
}

/* 主内容区 */
.main-content {
  padding: 60px 15px 80px;
  position: relative;
  z-index: 10;
}

/* 用户信息 */
.user-profile {
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.user-profile::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(230, 33, 23, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
  box-shadow: 0 0 15px rgba(230, 33, 23, 0.2);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  text-align: center;
  margin-bottom: 20px;
}

.username {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.user-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 15px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.profile-login {
  background-color: #e62117;
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(230, 33, 23, 0.2);
}

.profile-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(230, 33, 23, 0.3);
}

/* 功能菜单 */
.profile-menu {
  margin-bottom: 20px;
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.menu-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: all 0.6s;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.menu-item:hover::before {
  left: 100%;
}

.menu-item i {
  font-size: 20px;
  color: #e62117;
  width: 25px;
  text-align: center;
}

.menu-item span {
  font-weight: 500;
}

.badge {
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: #e62117;
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 我的收藏和观看历史 */
.my-collections,
.watch-history {
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background-color: #e62117;
  margin-right: 8px;
  border-radius: 3px;
}

.empty-state {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px 15px;
  text-align: center;
}

.empty-state i {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 15px;
}

.empty-state p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.empty-state .login-btn {
  margin-top: 20px;
}

/* 推荐内容 */
.recommended-content {
  margin-bottom: 20px;
}

.recommend-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.recommend-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.recommend-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.recommend-item:hover .play-overlay {
  opacity: 1;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.recommend-item:hover .video-thumb img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.play-overlay i {
  font-size: 40px;
  color: #fff;
  text-shadow: 0 0 10px rgba(230, 33, 23, 0.8);
}

.duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 3px;
}

.recommend-item h3 {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-item p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 10px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 15px;
}

.modal-content {
  background-color: #1a1a1a;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  animation: fadeIn 0.3s;
}

.video-content {
  max-width: 90%;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.close-modal {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input {
  width: 100%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: rgba(230, 33, 23, 0.5);
}

.login-submit,
.register-submit {
  width: 100%;
  background-color: #e62117;
  color: #fff;
  padding: 12px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.login-submit:hover,
.register-submit:hover {
  background-color: #ff3329;
}

.social-login {
  margin-top: 20px;
  text-align: center;
}

.social-login p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
  cursor: pointer;
}

.social-icon:hover {
  color: #fff;
}

.register-link,
.login-link {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.register-link a,
.login-link a {
  color: #e62117;
  text-decoration: underline;
}

#video-player {
  width: 100%;
  height: auto;
  max-height: 50vh;
  background-color: #000;
  border-radius: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 社交登录悬浮框样式 */
.social-login-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #1a1a1a;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: none;
  animation: fadeIn 0.3s;
}

.popup-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.close-popup {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.close-popup:hover {
  color: #fff;
}

.platform-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
  position: relative;
}

.tab.active {
  color: #fff;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: #e62117;
}

.tab:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.tab i {
  margin-right: 5px;
}

.tab-content {
  padding: 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.login-methods {
  display: flex;
  gap: 20px;
}

.login-method {
  flex: 1;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  text-align: center;
}

.qr-code-container {
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
}

.qr-code-container img {
  width: 100%;
  max-width: 180px;
}

.login-method p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

.login-method .form-group {
  margin-bottom: 10px;
}

.login-method .form-group input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #fff;
  padding: 8px;
  width: 100%;
  outline: none;
}

.account-login {
  background-color: #e62117;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  width: 100%;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.account-login:hover {
  background-color: #ff3329;
}

/* 侧边菜单 */
.sidebar-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background-color: #1a1a1a;
  z-index: 300;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: #1a1a1a;
  z-index: 10;
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.close-sidebar {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.close-sidebar:hover {
  color: #fff;
}

.sidebar-content {
  padding: 15px;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 250;
  display: none;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

/* 侧边菜单内容样式 */
.sidebar-menu ul {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu .menu-section {
  margin-bottom: 20px;
}

.sidebar-menu .section-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  padding-left: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-menu .menu-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu .menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar-menu .menu-item i {
  width: 25px;
  margin-right: 15px;
  color: #e62117;
}

.sidebar-menu .logout-btn {
  width: 100%;
  padding: 10px 15px;
  background-color: rgba(230, 33, 23, 0.1);
  color: #e62117;
  border-radius: 8px;
  text-align: left;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.sidebar-menu .logout-btn i {
  width: 25px;
  margin-right: 15px;
}

.sidebar-menu .logout-btn:hover {
  background-color: rgba(230, 33, 23, 0.2);
}

/* 消息通知样式 */
.notification-item {
  padding: 15px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  transition: all 0.3s;
}

.notification-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.notification-item.unread {
  border-left: 3px solid #e62117;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.notification-title {
  font-weight: 500;
}

.notification-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.notification-content {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* 设置项样式 */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-label {
  font-weight: 500;
}

.setting-value {
  color: rgba(255, 255, 255, 0.6);
}

.setting-toggle {
  position: relative;
  width: 45px;
  height: 24px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s;
  cursor: pointer;
}

.setting-toggle.active {
  background-color: #e62117;
}

.setting-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  transition: transform 0.3s;
}

.setting-toggle.active::after {
  transform: translateX(21px);
}

/* 收藏和历史记录样式 */
.sidebar-collection-item,
.sidebar-history-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-thumb {
  width: 80px;
  height: 45px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-duration {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

/* 进度条 */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #e62117;
  z-index: 10;
}